<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <link rel="stylesheet" type="text/css" href="luodi2.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.2/css/swiper.css">
    <script src="swiper.js"></script>
    <script src="http://cdn.66173.cn/www/js/jquery-1.8.3.min.js"></script>
    <title>落地页</title>
    <style>
        .imgimg{
            width: 100%;
        }
        .bbb{
            width: 90%;margin:-5px auto;
        }
        .swiper-pagination-bullet {
            width:30px;
            height:8px;
            display: inline-block;
            background: #ffba0c;
            border-radius: 0px!important;
            opacity: 0.4;

        }
        .swiper-pagination-bullet-active {
            opacity: 1;
        }
    </style>
</head>
<body class="body">
<div class="body_contant">
    <a class="top_a" href="">
        <img src="indexImage/bg/fix.jpg" alt="">
    </a>
    <div class="page-center">
        <div class="body_center_a">
            <a class="body_center_a1" href="#">
                <img  src="indexImage/bg/bg_01.png" alt="">
            </a>
        </div>
        <div class="body_center_banner ">
            <div class="rotator clearfix bbb">
                <div class="swiper-container ">
                    <div class="swiper-wrapper">
                        <div class="swiper-slide swiper-pagination-bullet-active"><a href="#" target="_blank"><img class="imgimg" src="indexImage/lunbo2.jpg" alt="" /></a></div>
                        <div class="swiper-slide"><a href="#" target="_blank"><img  class="imgimg" src="http://cdn.66173.cn//images/product_img/201801/1516850648753.jpg" alt="" /></a></div>
                        <div class="swiper-slide"><a href="#" target="_blank"><img class="imgimg" src="http://cdn.66173.cn//images/product_img/201801/1516850648763.jpg" alt="" /></a></div>
                    </div>
                    <!-- Add Pagination -->
                    <div class="swiper-pagination">
                        <span class="swiper-pagination-bullet swiper-pagination-bullet-active" data-seq="0"></span>
                        <span class="swiper-pagination-bullet" data-seq="1"></span>
                        <span class="swiper-pagination-bullet" data-seq="2"></span>
                    </div>
                </div>
            </div>
            <ul class="ulul">
                <li class="bgbg">新闻</li>
                <li>公告</li>
                <li>最新</li>
                <li>详情</li>
            </ul>
            <div style="width: 100%">
                <div class="tab_contant ul1">
                    <li><span class="span">封建割据覅偶感觉内经而封建割据覅偶感觉内经而</span> <span>7/23</span></li>
                    <li><span class="span">封建割据覅偶感觉内经而</span> <span>7/23</span></li>
                    <li><span class="span">封建割据覅偶感觉内经而</span> <span>7/23</span></li>
                    <li><span class="span">封建割据覅偶感觉内经而</span> <span>7/23</span></li>
                    <li><span class="span">封建割据覅偶感觉内经而</span> <span>7/23</span></li>
                    <li><span class="span">封建割据覅偶感觉内经而</span> <span>7/23</span></li>
                </div>
                <div class="tab_contant ul2">
                    <li><span class="span">机房电脑机房的</span> <span>7/23</span></li>
                    <li><span class="span">机房电脑机房的</span> <span>7/23</span></li>
                    <li><span class="span">机房电脑机房的</span> <span>7/23</span></li>
                    <li><span class="span">机房电脑机房的</span> <span>7/23</span></li>
                    <li><span class="span">机房电脑机房的</span> <span>7/23</span></li>
                </div>
                <div class="tab_contant ul3">
                    <li><span class="span">你看法规及方式公司的</span> <span>7/23</span></li>
                    <li><span class="span">你看法规及方式公司的</span> <span>7/23</span></li>
                    <li><span class="span">你看法规及方式公司的</span> <span>7/23</span></li>
                    <li><span class="span">你看法规及方式公司的</span> <span>7/23</span></li>
                    <li><span class="span">你看法规及方式公司的</span> <span>7/23</span></li>
                </div>
                <div class="tab_contant ul4">
                    <li><span class="span">个梵蒂冈地方是个好不发动机</span> <span>7/23</span></li>
                    <li><span class="span">个梵蒂冈地方是个好不发动机</span> <span>7/23</span></li>
                    <li><span class="span">个梵蒂冈地方是个好不发动机</span> <span>7/23</span></li>
                    <li><span class="span">个梵蒂冈地方是个好不发动机</span> <span>7/23</span></li>
                </div>
            </div>
        </div>
        <img style="width: 100%" src="http://cdn.66173.cn//images/banner_img/201801/1516850648186.png" alt="">
    </div>
</div>
</body>
<script>
    var swiper1 = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        autoplay:300090000,
        crossFade: true ,///控制是否自动播放
        preloadImages: false, //是否初始时将所有轮播图加载完,
        lazyLoading: true, //是否图片懒加载，要和preloadImages: false一起使用
        paginationClickable: true,
        autoplayDisableOnInteraction: false //控制用户滑动或点击到其他图后是否不再轮播
    });
</script>
<script>
    var slideInterval=null;
    var cur = 0;
    var slideInterval;
    var imgUlLen = $(".banner_ul li").length;
    function sizeControl() {
        $(".page-center").css("margin-top", $(".top_a img").height());
    }
    $(window).load(function() {
        slideInterval = setInterval(function() {
            cur < imgUlLen ? cur++ : cur = 0;
            slideControl(cur);
        }, 2000)
        sizeControl();
    });
    // $(".body_center_banner").mouseenter(function () {
    //     clearInterval(slideInterval)
    // })
    //
    // $(".body_center_banner").hover(
    //     function(){
    //         clearInterval(slideInterval);
    //     },function(){
    //         slideInterval = setInterval(function() {
    //             cur < imgUlLen ? cur++ : cur = 0;
    //             slideControl(cur);
    //         }, 2000)
    //     }
    // );
    $(window).resize(function() {
        sizeControl();
        var width=$(window).width();
        //浏览器时下窗口可视区域宽度 console.log(width)
        if(width<=322){
            $("html").css("fontSize","12px")
        }else{
            $("html").css("fontSize","1rem")
            console.log("1111111111")
        }

    });
    function slideControl(cur) {
        $('.banner_ul li[data-index="'+cur+'"]').addClass("show").siblings().removeClass("show");
        $('.dot-ul li[data-index="'+cur+'"]').addClass("cur").siblings().removeClass("cur");
    }
    $('.ulul li:nth-child(1)').click(function () {
        $(this).addClass("bgbg").siblings().removeClass("bgbg")
        $('.ul1').show().siblings().hide()
    })
    $('.ulul li:nth-child(2)').click(function () {
        $(this).addClass("bgbg").siblings().removeClass("bgbg")
        $('.ul2').show().siblings().hide()
    })
    $('.ulul li:nth-child(3)').click(function () {
        $(this).addClass("bgbg").siblings().removeClass("bgbg")
        $('.ul3').show().siblings().hide()
    })
    $('.ulul li:nth-child(4)').click(function () {
        $(this).addClass("bgbg").siblings().removeClass("bgbg")
        $('.ul4').show().siblings().hide()
    })
    //    截取li中指定的文字数以防被超出
    $(".span").each(function(){
        var len=$(this).text()
        if( len.length<=10){
            $(this).html($(this).text())
        }else{
            $(this).html($(this).text().substring(0,10)+'...')
        }
    })
</script>
</html>